<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="icon" href="../../favicon.ico">

  <title>{{data.title}}</title>

  <!-- Bootstrap core CSS -->
  <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

  <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  <link href="../public/css/common.css" rel="stylesheet">


</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">{{data.title}}</a>
    </div>
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav navbar-right">
        {{ each data.fruits }}
        <li><a href="#">{{ $value.name }}</a></li>
        {{ /each }}
      </ul>
      <form class="navbar-form navbar-right">
        <input type="text" class="form-control" placeholder="Search...">
      </form>
    </div>
  </div>
</nav>

<div class="container-fluid">
  <div class="row">
    <div class="col-sm-3 col-md-2 sidebar">
      <ul class="nav nav-sidebar">
        <li class="active"><a href="#">Overview <span class="sr-only">(current)</span></a></li>
        <li><a href="#">Reports</a></li>
        <li><a href="#">Analytics</a></li>
        <li><a href="#">Export</a></li>
      </ul>
      <ul class="nav nav-sidebar">
        <li><a href="">Nav item</a></li>
        <li><a href="">Nav item again</a></li>
        <li><a href="">One more nav</a></li>
        <li><a href="">Another nav item</a></li>
        <li><a href="">More navigation</a></li>
      </ul>
      <ul class="nav nav-sidebar">
        <li><a href="">Nav item again</a></li>
        <li><a href="">One more nav</a></li>
        <li><a href="">Another nav item</a></li>
      </ul>
    </div>
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
      <h1 class="page-header">Dashboard</h1>

      <div class="row placeholders">
        {{ each data.fruits }}
        <div class="col-xs-6 col-sm-3 placeholder">
          <img src="{{ $value.src }}" height="220px">
          <h4> {{ $value.name }}</h4>
        </div>
        {{ /each }}
      </div>

      <h2 class="sub-header">Section title</h2>
      <div class="table-responsive">

        <a type="button" href="add.html" class="btn btn-success">添加</a>

        <button type="button" class="btn btn-info">查找</button>

        <table class="table table-striped">
          <thead>
          <tr>
            <th>id</th>
            <th>fruitName</th>
            <th>date</th>
            <th>price</th>
            <th>amount</th>
            <th>操作</th>
          </tr>
          </thead>
          <tbody>
          {{ each data.type }}
          <tr>
            <td>{{ $value.id }}</td>
            <td>{{ $value.fruitName }}</td>
            <td>{{ $value.date }}</td>
            <td>{{ $value.price }}</td>
            <td>{{ $value.amount}}</td>
            <td>
              <a type="button" href="edit.html?id={{ $value.id }}" class="btn btn-warning">修改</a>
              <a type="button" href="delete.html?id={{ $value.id }}" class="btn btn-danger">删除</a>
            </td>
          </tr>
          {{ /each }}
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<script src="../public/js/bootstrap.bundle.min.js"></script>
</body>
</html>
